package org.example.partten.factory.post;

import org.example.partten.factory.IsLikeFactory;
import org.example.skytool.redis.RedisConstants;
import org.example.skytool.redis.RedisUtils;
import org.example.utils.post.post.RedisPostService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 22449
 */
@Component
public class PostIsLikeFactory implements IsLikeFactory {

    @Resource
    private RedisPostService redisPostService;

    @Override
    public Boolean isLike(String id1, String id2) {
        return redisPostService.judgeLike(id1,id2);
    }

}
